import axios from 'axios';
import swal from 'sweetalert';

//获取按钮
let btn = document.querySelector('button');

btn.onclick = async function(){
  await axios.get('http://api.xiaohigh.com/lol');
  swal({
    title: "xxxx",
    text: "马上就要五一啦, 你们开心吗?",
    icon: "success",
  });
}